/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2013-2013 Hechzh Property

   
*/

#ifndef SYSTEMTRAYICON_H
#define SYSTEMTRAYICON_H

#include <QSystemTrayIcon>

class QMainWindow;
class QTimer;

class SystemTrayIcon : public QSystemTrayIcon {
  Q_OBJECT

 public:
  SystemTrayIcon(QMainWindow* mainWindow);
  virtual ~SystemTrayIcon();

  void animateIcon(bool on);

 private:
  Q_DISABLE_COPY(SystemTrayIcon);
  SystemTrayIcon();
  QStringList icons;

  int iconIdx;
  QTimer* timer;

 protected:
 public slots:
  void setNewIcon(int icon);
  void setIconInternal();
};

#endif  // SYSTEMTRAYICON_H
